package br.unicamp.mc933;

import java.io.Serializable;

public class Route implements Serializable {
    private int id;
    private String name;
    private String code;
    
    public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

    public Route(){
        super();
    }
   
    public Route(int id, String name, String code) {
        super();
        this.id = id;
        this.name = name;
        this.code = code;
    }

    @Override
    public String toString() {
        return this.code + " - " + this.name;
    }
}